<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件堆叠效果</title>
    <style>
        html,
        body {
            height: 100%;
        }

        body {
            min-width: 230px;
            max-width: 560px;
            background: #f5f5f5;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;

        }

        .container {
            background-color: #fff;
            width: 100%;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e6e6e6;
            position: relative;
        }

        /* 下面实现堆叠效果 */
        .container::after {
            content: '';
            position: absolute;
            right: 0;
            left: 0;
            bottom: 0;
            height: 50px;
            box-shadow:
                0 1px 0px rgba(0, 0, 0, 0.2),
                0 12px 0px -3px #f6f6f6,
                0 12px 4px -3px rgba(0, 0, 0, 0.2),
                0 24px 0px -6px #f6f6f6,
                0 24px 4px -6px rgba(0, 0, 0, 0.2),
                0 36px 0px -9px #f6f6f6,
                0 36px 4px -9px rgba(0, 0, 0, 0.2),
                0 48px 0px -12px #f6f6f6,
                0 48px 4px -12px rgba(0, 0, 0, 0.2)
        }
    </style>
</head>

<body>
    <div class="container">这是一个堆叠效果。名字可能不太恰当</div>
</body>

</html>